package com.simba.server.jsonservice.serivces;

import com.simba.common.jsonservice.JsonService;
import com.simba.common.log.LogUtil;
import com.simba.server.components.SlotManager;
import org.apache.log4j.Logger;
import org.jboss.netty.channel.Channel;

/**
 * @author create by kavin
 * @date 2020/10/25 11:36
 */
public class ScreenBigInitJsonService implements JsonService {
    public static final String NAME = "ScreenBigInit";
    private final static Logger logger = Logger.getLogger(ScreenBigInitJsonService.class);

    @Override
    public void handleRequest(Channel channel, Object content) {
        try
        {
            SlotManager.getInstance().registerBigScreen(channel);
        }
        catch (Exception e)
        {
            LogUtil.LogError(ScreenBigInitJsonService.logger, "Slot Pack Info Json Service Error : exception info : "+e.getMessage());
        }
    }
}
